import api from "@/network/api";

// 分页查询
export const getDataList = (config: any): Promise<any> => {
  return api({
    url: "/manage/page",
    method: "get",
    params: config,
  });
};
// 新增
export const addDataList = (config: any): Promise<any> => {
  return api({
    url: "/manage/add",
    method: "post",
    data: config,
  });
};
// 修改
export const EditDataList = (config: any): Promise<any> => {
  return api({
    url: "/manage/pdate",
    method: "post",
    data: config,
  });
};

// -------------------标记相关---------------------
export const getByMapId = (config: any): Promise<any> => {
  return api({
    url: "/sign/listByMapId",
    method: "get",
    params: config,
  });
};
export const AddSign = (config: any): Promise<any> => {
  return api({
    url: "/sign/add",
    method: "post",
    data: config,
  });
};
